package com.example.demo.service;

import com.example.demo.admin.dto.AddUser;
import com.example.demo.admin.dto.RegisterDto;
import com.example.demo.admin.dto.SearchDto;
import com.example.demo.admin.dto.UserDto;
import com.example.demo.admin.pojo.PageResult;
import com.example.demo.admin.vo.DepartmentVO;
import com.example.demo.admin.vo.LoginVo;
import com.example.demo.admin.vo.StatisticsVo;
import com.example.demo.admin.vo.UserVo;

import java.util.List;

public interface UserService {
    void addUser(RegisterDto registerDto);

    LoginVo login(RegisterDto registerDto);

    void exitUser(String username);

    UserVo getUserDetail();

    void updateUser(UserDto userDto);

    List<DepartmentVO> getDepartments();

    List<DepartmentVO> getJobs();

    PageResult getAllUser(SearchDto searchDto);

    void saveUser(AddUser addUser);

    void deleteUser(String username);

    void resetPassword(String username);

    StatisticsVo UserStatistics();

    void updateAvatar(String image,String username);
}
